package com.jiangyao.dao;

import com.jiangyao.model.dto.CoursewareDTO;
import com.jiangyao.model.dto.PublicCoursewareDTO;
import com.jiangyao.model.dto.PublicSubjectDto;
import com.jiangyao.model.dto.SubjectDto;
import com.jiangyao.model.entity.ChapterCourseware;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiangyao.model.entity.CoursewareData;
import com.jiangyao.model.vo.ChapterCoursewareVo;
import com.jiangyao.model.vo.ChapterQuestionVo;
import com.jiangyao.model.vo.QuestionVo;
import com.jiangyao.model.vo.SimpleChapterCoursewareVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 章节课件信息 Mapper 接口
 * </p>
 *
 * @author lijing
 * @since 2020-08-13
 */
public interface IChapterCoursewareDao extends BaseMapper<ChapterCourseware> {
        List<QuestionVo> getCoursewareQuestion(SubjectDto subjectDto);

        List<QuestionVo> getCoursewareQuestionBySubjectId(PublicSubjectDto publicSubjectDto);

        QuestionVo getCoursewareScore(@Param("userId")Integer userId,@Param("clsubId") Integer clsubId,@Param("coursewareId") Integer coursewareId);

        ChapterCoursewareVo getCoursewareInfo(CoursewareDTO coursewareDTO);

        ChapterCoursewareVo getPublicCoursewareInfo(PublicCoursewareDTO params);

        Integer getCoursewareCount(CoursewareDTO coursewareDTO);

        Integer getPublicCoursewareCount(PublicCoursewareDTO coursewareDTO);

        List<SimpleChapterCoursewareVo> getCoursewareList(CoursewareDTO coursewareDTO);

        List<SimpleChapterCoursewareVo> getPublicCoursewareList(PublicCoursewareDTO params);


        QuestionVo getPublicCoursewareScore(@Param("userId")Integer userId,@Param("subjectId") Integer subjectId,@Param("coursewareId") Integer coursewareId);

}
